// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   CommPortIdentifier.java

package javax.comm;

import java.util.Enumeration;

// Referenced classes of package javax.comm:
//            CommPortIdentifier, CpoList, CpoListEntry, OwnershipEventThread

class CommPortEnumerator
    implements Enumeration
{

    private CommPortIdentifier curEntry;

    @Override
	public Object nextElement()
    {
        synchronized(CommPortIdentifier.lock)
        {
            if(curEntry != null)
                curEntry = curEntry.next;
            else
                curEntry = CommPortIdentifier.masterIdList;
        }
        return curEntry;
    }

    @Override
	public boolean hasMoreElements()
    {
        synchronized(CommPortIdentifier.lock)
        {
            if(curEntry != null)
            {
                boolean flag = curEntry.next != null;
                return flag;
            }
            boolean flag1 = CommPortIdentifier.masterIdList != null;
            return flag1;
        }
    }

    CommPortEnumerator()
    {
    }
}
